/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package examC;

import java.util.Arrays;

/**
 *
 * @author thilinaj
 */
public class Bserch {

    public static void main(String[] args) {
        String[] a = new String[]{"blue", "red", "green", "orange", "yellow"};
        Arrays.sort(a);

        for (String string : a) {
            System.out.println(string);
        }

        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("aaaa");
            }
        };
        
        Thread t = new Thread(){
            @Override
            public void run(){
                System.out.println("bbbbbbb"); 
            }
        };
        t.start();
    }
}
